﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;



namespace UserInterface.UserControls
{
    using Events;

    /// <summary>
    /// Interaction logic for UCMapObject.xaml
    /// </summary>
    public partial class ObjectOnMap : UserControl
    {
        public ObjectOnMap(
            ImageBrush mapObjectImageBrush
            )
        {
            InitializeComponent();
            this.MapObject.Background = mapObjectImageBrush;
        }

        internal void SetMapObjectContextMenu(ContextMenu menu)
        {
            this.MapObject.ContextMenu = menu;                
        }

        internal void SetMapObjectBackground(ImageBrush imageBrush)
        {
            this.MapObject.Background = imageBrush;
        }

        internal void SetMapObjectForeground(ImageBrush imageBrush)
        {
            this.MapObject.Foreground = imageBrush;
        }
    }
}
